package org.blogwu.jvm_learn.filters;

import java.util.UUID;

public class UserFilters {


    public static ThreadLocal<String> requestId = new ThreadLocal<String>() {

        protected String initialValue() {
            // 语言的默认值
            return UUID.randomUUID().toString();
        }
    };


    public static void main(String[] args) {
        System.out.println(UUID.randomUUID().toString());
        System.out.println(UserFilters.requestId.get());
    }

}
